﻿/*----------------------------------------------------------------
//  <copyright file="ConnectionUser.cs" company="MicroCloud@151504200868">
//      Copyright © 2020-2024 MicroCloud Corporation, All rights reserved.
//  </copyright>
//  <site>https://gitee.com/chenmm123/microclouds</site>
//  <last-editor>cmm</last-editor>
//  <last-date>2022-11-15 11:17</last-date>
//----------------------------------------------------------------*/

namespace MicroCloud.AspNetCore.SignalR
{
    #region "SignalR连接用户项"
    /// <summary>
    /// SignalR连接用户项
    /// </summary>
    public class ConnectionUser
    {
        #region "属性"
        #region "获取或设置 用户标识"
        /// <summary>
        /// 获取或设置 用户标识
        /// </summary>
        public string UserKey { get; set; }
        #endregion
        #region "获取或设置 在线状态"
        /// <summary>
        /// 获取或设置 在线状态
        /// </summary>
        public OnlineStatus OnlineStatus { get; set; } = OnlineStatus.Online;
        #endregion
        #region "获取或设置 连接Id集合"
        /// <summary>
        /// 获取或设置 连接Id集合
        /// </summary>
        public ICollection<string> ConnectionIds { get; set; } = new List<string>();
        #endregion

        #endregion

    }
    #endregion

}
